<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.4.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.4.0/css/font-awesome.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.2/html5shiv-printshiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.js"></script>
    <![endif]-->
    <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.4.0/js/bootstrap.min.js"></script>
    <style media="screen">
      body{
        position:relative;
      }
    </style>
  </head>
  <body data-spy="scroll" data-target="#navbar">
    <script type="text/javascript">
      $(function(){
        $('body').scrollspy({target:'#navbar'});
        $('#page1').css('margin-top',$('#navbar').height()+20);
      });
    </script>
    <nav class="navbar navbar-default navbar-fixed-top" id="navbar" role="navigation">
      <div class="container">
        <ul class="nav navbar-nav">
          <li><a href="#page1">page1</a></li>
          <li><a href="#page2">page2</a></li>
          <li><a href="#page3">page3</a></li>
          <li><a href="#page4">page4</a></li>
          <li class="dropdown">
            <a href="#"  class="dropdown-toggle"  id="" data-toggle="dropdown">page5
            <span class="caret"></span></a>
            <ul class="dropdown-menu" role="menu" aria-labelledby="">
              <li><a href="#page6">page6</a></li>
              <li><a href="#">Another action</a></li>
              <li><a href="#">Something else here</a></li>
              <li role="separator" class="divider"></li>
              <li><a href="#">Separated link</a></li>
            </ul>
          </li>
        </ul>
      </div>
    </nav>
    <div class="container" id="page1">
      <ul class="list-group">
        <li class="list-group-item">haha</li>
      </ul>
      <div class="panel panel-success">
        <div class="panel-heading">
          <h3 class="panel-title">nihao</h3>
        </div>
        <div class="panel-body">
          dadasd
        </div>
        <div class="panel-footer">
          fafsdfsd
        </div>
      </div>
    </div>
    <div class="jumbotron">
      <div class="container" id="page2">
        <ul class="list-group">
          <li class="list-group-item">haha</li>
        </ul>
        <div class="panel panel-success">
          <div class="panel-heading">
            <h3 class="panel-title">nihao</h3>
          </div>
          <div class="panel-body">
            dadasd
          </div>
          <div class="panel-footer">
            fafsdfsd
          </div>
        </div>
      </div>
    </div>
    <div class="container" id="page3">
      <ul class="list-group">
        <li class="list-group-item">haha</li>
      </ul>
      <div class="panel panel-success">
        <div class="panel-heading">
          <h3 class="panel-title">nihao</h3>
        </div>
        <div class="panel-body">
          dadasd
        </div>
        <div class="panel-footer">
          fafsdfsd
        </div>
      </div>
    </div>
  </body>
</html>
